package com.dayu.recovery.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dayu.common.annotation.Excel;
import com.dayu.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 盘库日志对象 stock_check_log
 * 
 * @author HK
 * @date 2022-07-01
 */
public class StockCheckLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    private Long stockId;

    @Excel(name = "仓库")
    private String stockName;

    /** 未盘id */
    @Excel(name = "未盘id")
    private String goodsIds;

    /** 已盘数量 */
    @Excel(name = "已盘数量")
    private Long checkNo;

    /** 异常数量 */
    @Excel(name = "异常数量")
    private Long abnormalNo;

    /** 创建人id */
    private Long createId;

    @Excel(name = "创建人")
    private String createBy;

    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getStockId() {
        return stockId;
    }

    public void setStockId(Long stockId) {
        this.stockId = stockId;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public Long getId()
    {
        return id;
    }
    public void setGoodsIds(String goodsIds) 
    {
        this.goodsIds = goodsIds;
    }

    public String getGoodsIds() 
    {
        return goodsIds;
    }
    public void setCheckNo(Long checkNo) 
    {
        this.checkNo = checkNo;
    }

    public Long getCheckNo() 
    {
        return checkNo;
    }
    public void setAbnormalNo(Long abnormalNo) 
    {
        this.abnormalNo = abnormalNo;
    }

    public Long getAbnormalNo() 
    {
        return abnormalNo;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsIds", getGoodsIds())
            .append("checkNo", getCheckNo())
            .append("abnormalNo", getAbnormalNo())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
